package com.woniu.command.handler;

import com.woniu.adapter.MaterialBomAdapter;
import com.woniu.outlet.po.MaterialBomPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MaterialBomCommandHandler {

    @Autowired
    private MaterialBomAdapter materialBomAdapter;



    public Integer addMaterialBom(MaterialBomPo materialBomPo){
        materialBomAdapter.addMaterialBom(materialBomPo);
        return 1;
    }

    public Integer updateMaterialBom(MaterialBomPo materialBomPo){
        materialBomAdapter.updateMaterialBom(materialBomPo);
        return 1;
    }

    public Integer deleteMaterialBomById(Long id){
        materialBomAdapter.deleteMaterialBomById(id);
        return 1;
    }



}
